import com.world.cat.model.generate.Auto;
import com.world.cat.service.generate.CodeUtils;
import com.world.common.generate.freemaker.util.fremarker.ModelTemplate;
import org.junit.Test;

/**
 * Created by gang on 2016/11/24.
 */
public class Gen {
    private static String outFolder = "D:/freemaker/genCode";

    @Test
    public void gencode() throws Exception {

        ModelTemplate modelTemplate = CodeUtils.initModelTemplate(Auto.class);
        CodeUtils.genOne(modelTemplate, "DTO.ftl");
        System.out.println("output folder: " + outFolder);
        System.out.println("success");
    }
}
